//
//  DSXDetailViewController.h
//  iDerbyOSSampler
//
//  Created by glenn andreas on 1/7/14.
//  Copyright (c) 2014 glenn andreas. All rights reserved.
//

#import <UIKit/UIKit.h>

@class DerbyNSOde;
@interface DSXDetailViewController : UIViewController
@property (strong, nonatomic) DerbyNSOde *nsode;
@property (strong, nonatomic) NSMutableArray *binders;
@end

// Simple helper class to mimic bindings
@interface DSXBinder : NSObject
- (void) updateBindingValue;
@end
@interface DSXLabelBinder : DSXBinder
- (id) initWithLabel: (UILabel *) label bindToObject: (id) object keyPath: (NSString *) path;
@end

@interface DSXScoreboardViewController : DSXDetailViewController
@property (strong, nonatomic) IBOutlet UILabel *periodTimeLabel;
@property (strong, nonatomic) IBOutlet UILabel *jamTimeLabel;
@property (strong, nonatomic) IBOutlet UILabel *lineupTimeLabel;
@property (strong, nonatomic) IBOutlet UILabel *timeoutTimeLabel;
@property (strong, nonatomic) IBOutlet UILabel *periodNumberLabel;
@property (strong, nonatomic) IBOutlet UILabel *jamNumberLabel;
@property (strong, nonatomic) IBOutlet UILabel *homeScoreLabel;
@property (strong, nonatomic) IBOutlet UILabel *awayScoreLabel;
@end